home *** CD-ROM | disk | FTP | other *** search
- global allTogether, fit, piecesParts, allPieces, start, totalPieces, tolerance, stageWide, stageTall, saved, puzzCrop, currentPuzzle, puzzShape, puzzFolder, allReadyPuzzles, stageStart, downloadRate, statusChk, puzzPicFileURL, progressSprite, progWide, completePreviewLoc, puzzPrefs, puzzleTile, clipartList, isShockmachine, memberID, isSWXtra, puzzleDay, puzzlePicID, puzzleBmpID, puzzleTxtID, netID, gSM_StretchContent
-
- on startMovie
- allowZooming = 1
- tolerance = 5
- puzzleTile = 10
- case the runMode of
- "projector":
- if offset(".dcr", the moviePath) > 0 then
- thisMem = 1
- repeat while thisMem <= 172
- erase(member(thisMem))
- thisMem = 1 + thisMem
- end repeat
- alert("This location," && the moviePath && "is not authorized to use Shockwave file" && the movie & ".")
- halt()
- end if
- "author":
- isShockmachine = 1
- if offset(".dcr", the moviePath) > 0 then
- thisMem = 1
- repeat while thisMem <= 172
- erase(member(thisMem))
- thisMem = 1 + thisMem
- end repeat
- alert("This location," && the moviePath && "is not authorized to use Shockwave file" && the movie & ".")
- halt()
- end if
- "plugin":
- isShockmachine = getProp(the environment, #shockMachine)
- if not isShockmachine then
- the itemDelimiter = "/"
- if offset("shockwave.com", item 3 of the moviePath) > 0 then
- playOK = 1
- end if
- if offset("venuemedia.com", item 3 of the moviePath) > 0 then
- playOK = 1
- end if
- if not playOK then
- end if
- end if
- end case
- end
-
- on initPuzzler
- go("hold")
- thisSprite = 233
- repeat while thisSprite <= 239
- set the puppet of sprite thisSprite to 1
- thisSprite = 1 + thisSprite
- end repeat
- member("puzzle player tile").media = member("tile1").media
- set the stageColor to the stageColor
- set the member of sprite 233 to "menuBar"
- set the rect of sprite 233 to rect(0, 0, stageWide, 21)
- set the member of sprite 235 to "jigsaw"
- set the member of sprite 236 to "backgrounds"
- set the member of sprite 237 to "puzzlePlayerHelp"
- updateStage()
- go("initPuzzle")
- end
-
- on idle
- if (the activeWindow).rect.width <> stageWide then
- resizeStage()
- end if
- end
-
- on stopMovie
- if the runMode = "author" then
- thisSprite = 2
- repeat while thisSprite <= 220
- set the loc of sprite thisSprite to point(-9999, -9999)
- thisSprite = 1 + thisSprite
- end repeat
- thisMember = 1
- repeat while thisMember <= 220
- erase(member(thisMember))
- thisMember = 1 + thisMember
- end repeat
- thisSprite = 1
- repeat while thisSprite <= 300
- sprite(thisSprite).visible = 1
- thisSprite = 1 + thisSprite
- end repeat
- updateStage()
- nulltile = member("null tile").media
- member("puzzle player tile").media = nulltile
- put EMPTY into field "endgame"
- put EMPTY into field "version"
- set the foreColor of member "puzzPicFile" to 0
- member("puzzPicFile").editable = 0
- member("puzzPicFile").rect = rect(0, 0, 447, 12)
- put "Download progress" into field "puzzPicFile"
- member("complete" & string(puzzShape)).media = member("nullPic").media
- member("puzzPic" & string(puzzShape)).media = member("nullPic").media
- member("preview" & string(puzzShape)).media = member("nullPic").media
- end if
- end
-
- on resizeStage
- deskWide = (the desktopRectList)[1].width
- if deskWide = stageWide then
- end if
- puzzRect = (the activeWindow).rect
- sprite(1).rect = puzzRect
- sprite(1).loc = point(0, 0)
- stageWide = puzzRect.width
- stageTall = puzzRect.height
- set the rect of sprite 1 to rect(0, 0, stageWide, stageTall)
- if (the frame < 10) or (the frame > 40) then
- set the rect of sprite 38 to rect(0, 380, stageWide, stageTall)
- set the rect of sprite 39 to rect(640, 0, stageWide, stageTall)
- set the rect of sprite 40 to rect(0, 0, stageWide, stageTall)
- end if
- set the puppet of sprite 233 to 1
- set the member of sprite 233 to "menuBar"
- set the rect of sprite 233 to rect(0, 0, stageWide, 21)
- member("endGame").rect = rect(0, 0, stageWide - 231, 26)
- sprite(238).rect = rect(220, 0, stageWide - 11, 26)
- set the locH of sprite 239 to stageWide - 2
- updateStage()
- end
-
- on clearMenu me
- set the mouseDownScript to EMPTY
- aSprite = 250
- repeat while aSprite <= 259
- set the loc of sprite aSprite to point(-9999, -9999)
- aSprite = 1 + aSprite
- end repeat
- updateStage()
- end
-